<{include file="header.htm"}>
<div class="menu_bottom L1">				
    <div class="headtop_L">
        <{$lang.you_are_here}><a href='<{$config.weburl}>/'><{$lang.indexpage}></a> &raquo;发送询价
    </div>
</div>

<style>
.topm td{padding:5px; line-height:22px;}
</style>
<script type="text/javascript" src="script/Validator.js"></script>
<div id="mainbody1" class="topm">
  <form id="login" name="login" action="" method="post" onSubmit="return Validator.Validate(this,3)">
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf">

  <{if $smarty.get.type==1}>
  <tr><td height="100" bgcolor="#FFFFFF">发送邮件成功!</td></tr>
  <{else}>
  <tr>
    <td width="14%" align="right" bgcolor="#FFFFFF"><strong>收件人:</strong></td>
    <td width="86%" align="left" bgcolor="#FFFFFF">
    <{foreach item=list from = $receive}>
    <a target="_blank" href="<{$config.weburl}>/shop.php?uid=<{$list.userid}>"><{$list.user}>(<{$list.company}>)</a><br />
    <input name="toid[]" type="hidden" value="<{$list.userid}>" />
    <{/foreach}>
	</td>
  </tr>
  <tr>
    <td height="24" align="right" bgcolor="#FFFFFF"><strong>* 标题 :</strong></td>
    <td align="left" bgcolor="#FFFFFF">
      <input name="contype" type="hidden" value="<{$smarty.get.contype}>" />
      <input name="tid" type="hidden" value="<{$smarty.get.pid}>" />
      <input style="width:300px;" type="text" name="sub" id="sub" dataType="Require" msg="请填写邮件标题" /></td>
  </tr>
  <tr>
    <td height="82" align="right" bgcolor="#FFFFFF"><strong>* 详情 :</strong></td>
    <td align="left" bgcolor="#FFFFFF">
      <span style="color:#999999">Characters Remaining: 0 / 2000 (Min. 20)</span><br />
      <textarea name="con" id="con" cols="45" style="font-size:12px" rows="5" dataType="Require" msg="请填写邮件内容" ></textarea>    </td>
  </tr>
  <tr>
    <td height="27" align="right" bgcolor="#FFFFFF"><strong>询价内容 :</strong></td>
    <td align="left" bgcolor="#FFFFFF">
    <{foreach item=list key=num from=$receive_type}>
    <input name="receive_type[]" type="checkbox" value="<{$list}>" /><{$list}>
    <{if ($num+1)%3==0}><br /><{/if}>
    <{/foreach}>
    </td>
  </tr>
  <tr>
    <td height="44" align="right" bgcolor="#FFFFFF"><strong>回复时间</strong></td>
    <td align="left" bgcolor="#FFFFFF">
    <input type="checkbox" name="ask_reply" value="1" id="checkbox" />
    请在<{html_select_date end_year='2015' month_format='%m' field_order='YMD' time=$time}>之前回复我    </td>
  </tr>
  <tr>
    <td height="44" align="right" bgcolor="#FFFFFF"><strong>* 验证码:</strong></td>
    <td align="left" bgcolor="#FFFFFF">
    
    <input type='text' name='yzm' id="yzm"  size="25"  tabindex="3" height="50" class="tstyle" dataType="Require" msg="请填写验证码"  style="width:100px; <{if $smarty.get.etype==1}>border:3px solid #FF0000<{/if}>"/>
    <img onclick="get_randfunc(this);" style="padding-left:5px; cursor:pointer; vertical-align:middle;" src='<{$config.weburl}>/includes/rand_func.php'/>    </td>
  </tr>
  <{if $buid}>
  <tr>
    <td height="23" align="right" bgcolor="#FFFFFF">&nbsp;</td>
    <td align="left" bgcolor="#FFFFFF">
    请确认你的联系信息是正确的. <a target="_blank" href="main.php?menu=user&action=m&m=company&s=myshop">点这里查看或修改</a>.
    </td>
  </tr>
  <{else}>
  <tr>
      <td colspan="2" align="left">您还没有登录，请输入联系信息，或者点此登录后再发送询价信息</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*联系人</td>
    <td align="left" bgcolor="#FFFFFF"><input dataType="Require" msg="请填写联系人信息"  style="width:200px;" type="text" name="name" id="name" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*公司名</td>
    <td align="left" bgcolor="#FFFFFF"><input dataType="Require" msg="请填写公司名称，个人请写个人"  style="width:300px;" type="text" name="company" id="company" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*国家</td>
    <td align="left" bgcolor="#FFFFFF">
       <select name="country" id="country" class="input" style="width:300px;">
        <{foreach item=list key=num from=$country}>
        <option value="<{$list.name}>"><{$list.name}></option>
        <{/foreach}>
      </select>
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*省份</td>
    <td align="left" bgcolor="#FFFFFF">
    <input dataType="Require" msg="请填写省份"  style="width:300px;" type="text" name="province" id="province" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*城市</td>
    <td align="left" bgcolor="#FFFFFF">
    <input dataType="Require" msg="请填写城市"  style="width:300px;" type="text" name="city" id="city" />
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*地址</td>
    <td align="left" bgcolor="#FFFFFF">
    <input dataType="Require" msg="请填写地址" style="width:300px;" type="text" name="addr" id="addr" />
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">邮编</td>
    <td align="left" bgcolor="#FFFFFF"><input name="post" type="text" id="post" size="8" /></td>
  </tr>
  <tr>
      <td align="right" bgcolor="#FFFFFF">*电话</td>
      <td align="left" bgcolor="#FFFFFF">
        <input style="width:300px;" dataType="Require" msg="请填写邮件电话"  name="tell" type="text" id="tell" size="4" />
	 </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">传真</td>
    <td align="left" bgcolor="#FFFFFF">
    <input style="width:300px;"  name="fax" type="text" id="fax" />
	</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">手机</td>
    <td align="left" bgcolor="#FFFFFF"><input style="width:300px;" type="text" name="mobile" id="mobile" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">*邮件</td>
    <td align="left" bgcolor="#FFFFFF">
    <input  dataType="Require" msg="请填写邮件" style="width:300px;" type="text" name="email" id="email" />
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">网址</td>
    <td align="left" bgcolor="#FFFFFF">
      <input style="width:300px;" name="url" type="text" id="url" value="http://" />
      </td>
  </tr>
  <{/if}>

  <tr>
    <td align="right" bgcolor="#FFFFFF">&nbsp;</td>
    <td align="left" bgcolor="#FFFFFF"><input type="submit" name="submit" id="button" value=" 发送 " /></td>
  </tr>
  <{/if}>
</table>
  </form>
</div>
<{include file="footer.htm"}>